<template>
  <div id="app">
    实例{{getState}}
    <button @click="ckClick">点击</button>
  </div>
</template>

<script>
export default {
  name: 'App',
  methods:{
    ckClick(){
      this.$store.commit({
        type:'ck/updata',
        payload:'三笠'
      });
    }
  },
  computed:{
    getState(){
      return this.$store.state.count
    }
  },
  created(){
    console.log(this.$store);
  }
}
</script>

<style>

</style>
